#include <iostream>
using namespace std;
class Complex{
public:
    Complex(int a,int b):data1(a),data2(b){}
    Complex(){}
    Complex& operator ++(){
        ++this->data2;
        ++this->data1;
        return *this;
    }
    Complex operator ++(int){
        Complex temp = *this;
        ++(*this);
        return temp;
    }
    void disp() const {
        cout<<"("<<this->data1<<","<<this->data2<<")"<<endl;
    }
private:
    int data1;
    int data2;
};

int main(){
    Complex a(1,1);
    Complex b(2,2);
    Complex c;
    c=a++;
    c.disp();
    a.disp();
    c=++b;
    c.disp();
    b.disp();
}